The :invalid CSS pseudo-class

118

/* Selects any invalid <input> */
input:invalid {
  background-color: pink;
}

Comments

Submit
0 Comments